<?php
/**
 * 
 * 
 * @package WKernel
 *
 */
require_once 'WKernel/Data/Util.php';
class WK_Data_Value extends WK_Data_Util {
	private $value;
	
	public function __construct(&$value){
		$this->value = &$value;
	}
	
	public function __set($name, $value){
		$this->value =& $this->dataToSimpleType($value);
	}
	
	public function __get($name){
		return $this->value;
	}
	
	public function __toString(){
		return (string) $this->value;
	}	
}